window resize mappings, tidy-up