I\'m trying to create a slider which calls a function when the user has stopped moving it. The code for the slider is shown below.