fixing parallax on sm devices