adding states on sliders