Add gallery support on photos page.