future-proof browser resize