Removes window resize event listener on deactivate