prevent multiple callbacks on resize