Setter and getter for slider value