Update the insets when we show the thumbnail panel, as well as hide it. Some refactoring too.
Update the insets when we show the thumbnail panel, as well as hide it. Some refactoring too.

btrask/Sequential,johan/Sequential,johan/Sequential,btrask/Sequential,johan/Sequential,btrask/Sequential,btrask/Sequential