added code to resize timeline on resize