small changes to slick directive to fix ios bug