sliders refactoring