Slider refactoring