adjust layout for timeline