Slider enhancement.
Refactored