Hello,
Thank you for contacting us
The height depends on the width of the image (in order not to distort the image).
The fewer images in a line, the wider their width (and therefore their height)
You can try to achieve the desired height by changing Item Spacing (in gallery settings> thumbnails)
Best Regards,
Vyacheslav, Balbooa Support Team