- use debounce for window resize