adjust size of timeline when screen resizes