Need help news feed group

hie bubblers
i have a repeating set to include text and image, however i want a situation whereby when a user enters or posts only text the image space/gap is closed/hidden so that only text appears and right after comments section?

put your image in a group.
Make group only visible when current cell’s post image is not empty
set collapse height of group when hidden.