added resize with debounce