Rewrite the gallery to allow us to advance forwards and backwards,
including advancing between buttons.