waterfall - handle window resize