Update layout in gallery and photo partials.