Change the maximum and minimum values, use the slider, and see how the values change.
You may use this for other projects; this is probably not the best slider efficiency-wise, but I guess it does the job.