Footer and header change in gallery when switching images

fixes #9