[fix bug 943585] build photo galleries for contact pages