Function to call when the slider is changed.
Label text.
Maximum value.
Minimum value.
Selected value.