Add state setter in sliderBox