added matchMedia to slider directive