Keep swipe ratio on window resize