Generally, a cursor have a fixed size. But in the case of a slider associated to a window display a list a element, for example, this size can be used to symbolize the number of elements displayed in the window compare to the total of elements. In this case :
size = MIN( (element_seen / element_total) * 1000, 1000)