add option to loop slider

set option loop:false to disable looping