How to change the value of the slider?