add gallery to factory