window resize trigger only once