implementation of range slider directive