directive proper way, slider is working like a charm