Refactoring Slider