Added Slider functionality