slider directive fixes