added scrollbar thumb size logic