How can I have an image gallery on a newsfeed LFD?

Hi, I need some help setting up an image gallery to open in the detailed view on a newsfeed list from data source.

I have seen this in other apps but cannot replicate it on mine, I can upload multiple images via the form but they are not displayed as a gallery in the newsfeed detailed view.

Is there a bit of code I can use for this to work?

Thanks in advance for the help.