slider added change function

Added change function to change the value when slider with some value is
called.