small Slider refactoring.