making timelines the correct length