Slider refactored and documented