Slider directive to use in angular applications