add popup gallery to galleries and events