Watch and move the slider around. (Do not change the slider range, it will not work on other ranges.)
Kind of quite a quick project; made it relatively easily.