Add timer to resize so allow for CSS animations