sets up slider
completes assignment