Fix behavior of vertical sliders.