Different type of contents for a repeating group

I am attempting to have a repeating group based on what the user saves in order. Is it possible?
My data set up:

Recipe
mainItem : text
detailItemList : List of text
detailImages : List of images

When a user clicks mainItem, it will navigate to next page where I want a repeating group of both text and images. So lets say user adds an a text, then repeating group would have text. Then user would add image next so repeaeting group would have text then an image in the next cell. Is this possible?