Slider functionality added.