trigger functions only if the window wasn't resized for x ms