Fixes vertical sliders

Fixes vertical sliders that stopped positioning correctly with commit 99b7d2ec8404182e3598406f6c222ce6b20a703b