Centering the gallery wasn't a good idea.  Just make it static.