mobile resize event fix