add basic slider directive