Create slider directive