adding prototype functionality to sliders