Clean version of the class HorizontalSlider and VerticalSlider