# How can I make a responsive Masonry Gallery with UMG

**URL:** <https://forums.unrealengine.com/t/how-can-i-make-a-responsive-masonry-gallery-with-umg/490358>\
**Category:** UI\
**Tags:** Procedural-Generation, unreal-engine, grid, Blueprint, question, UMG\
**Created:** [October 29, 2021, 12:52am UTC](https://forums.unrealengine.com/t/how-can-i-make-a-responsive-masonry-gallery-with-umg/490358 "2021-10-29T00:52:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Murras](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Murras](https://forums.unrealengine.com/u/Murras)\
**Post date:** [October 29, 2021, 12:52am UTC](https://forums.unrealengine.com/t/how-can-i-make-a-responsive-masonry-gallery-with-umg/490358/1 "2021-10-29T00:52:18Z")

</div>

I need to load an UMG menu with a texture 2D’s array and the layout must resemble an masonry Gallery ( all photos are placed in a irregular grid panel and all of the images keep their aspect ratio. People usually makes one of these using the Masonry Js or the Css but I need this layout using UMG.

I already tried using a Wrap Box panel but it lacks events and functions that would help me control row length/ size.

Here is some references I am aiming at:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/5/c25778feacfbda89129fe6a1d220fdbde7a64663.gif) ](https://i2.wp.com/codemyui.com/wp-content/uploads/2018/10/CSS-Masonry-Grid-for-Image-Gallery.gif?fit=880,440&ssl=1)

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/b/00b6906a23544eb03816554773e604d82faa915b.jpeg)

---

<div class="post-metadata">

**Author:** ![Cektantwork](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cektantwork/32/717411_2.png) [@Cektantwork](https://forums.unrealengine.com/u/Cektantwork)\
**Post date:** [May 10, 2023, 1:20pm UTC](https://forums.unrealengine.com/t/how-can-i-make-a-responsive-masonry-gallery-with-umg/490358/2 "2023-05-10T13:20:24Z")

</div>

Any solution?
