Forum Academy Marketplace Showcase Pricing Features

Formatting Images inside Repeating Groups to display different Image sizes?

Hi i’m quite new to bubble and am having trouble with building out an explore feed with different sized images. Im trying to recreate a similar layout to the tumblr discover feed where images are shown like so :

Im currently having an issue with the formatting of the picture size and the bars above and below not lining up and showing white space in between like so with the image on the right:

Would anyone be able to suggest a way in which the bars both above and below the image will always be the correct fit for any image that is uploaded?

Any help is greatly appreciated! Thank you!