updated slider directive