sets up slider