adding gallery to all pages