improved the transition animations

The transition animations are now a *lot* less jerky.

Also fixed a bug with the main pane being able to scroll down,
when the window was too thin.