throttle resize handling. fixes #4