add functionallity to the sliders