Working slider with Angular directive