We have a Vertical Gallery inside containers, as follow:-

 

[![johnjohn123_0-1697640840269.png][1]][1]

 

now each gallery's item is occupying a lot of vertical space, as follow:-

 

[![johnjohn123_1-1697640980331.png][2]][2]

 

so how i can minimize this space in a dynamic way? now there are 2 settings i can change:-

 

1) Gallery's TemplateSize =104:-

 

[![johnjohn123_2-1697641194145.png][3]][3]

 

 

 

2) Gallery's Item Height =200 :-

 

[![johnjohn123_3-1697641228772.png][4]][4]

 

 

so which property i need to change? and can i define dynamic formulas instead of defining hard-coded numbers inside those 2 properties?


 [1]: https://i.sstatic.net/pphyq.png
 [2]: https://i.sstatic.net/Y2ZGG.png
 [3]: https://i.sstatic.net/ZpWow.png
 [4]: https://i.sstatic.net/loAKr.png