Added code for making an interactive slider.