Center popup on window resize