Add get and set for the slider and rangeSlider.