gallery to modules