Timeline responds to window resize