Relative position, dynamic sizing of store

I have put two store galleries on one page, one below the other, with different categories of products in each. There is also some text in between.
Is it possible to have the two sections follow, with neither overlap nor gap, independent of how many products are in each store? This would be relative positioning in html, I believe. A solution requiring the code manager, which I have not yet tried, would also be fine; I am reasonably comfortable with html.

Hi,
I’m pretty sure it’s possible to add two product galleries and choose which collection is displayed:
https://support.wix.com/en/article/adding-a-product-gallery-to-your-store

If this is not what you were referring, please send us a site as an example so that we can better understand what you were referring.

Best,
Tal.