add slider directive