refactored simpleSlider