Hook up slider to duration