Add borders around each panel.  Make the background and the border elements simple fixed-position divs that are exactly as wide as the screen, rather than variable width divs that grow with the timeline.  They are display-only elements, so their width needn't grow.