Improve timeline contraction animation