Be smarter about div layout to avoid repaints.

This is related to #61 and technically fixes it, but it leads to
significantly reduced performance when scrolling and triggering loads. I
don't know why.
Flexbox based pane layout solution. Still laggy.