Hi there,
Please note that what you are trying to achieve is not available out of the box and falls beyond the scope of our support. We could however give you some suggestions to get you started but might require some tweaking on your end based on your setup.
Since getting things inline is based on the content and it’s length, I’d suggest you to re-size your images to the same resolution so this won’t cause any trouble.
Adjust your content so they appear to be same. You can also use CSS properties to adjust the height and width of the content.
That may help you in fixing the issue. Hope this helps!