Yes, this is one of my main issues with the nostr:npub18m76awca3y37hkvuneavuw6pjj4525fw90necxmadrvjg0sdy6qsngq955 gallery. It can’t really handle images with varying height in the same carousel.
Incidentally, nostr:npub12vkcxr0luzwp8e673v29eqjhrr7p9vqq8asav85swaepclllj09sylpugg has solved this by cropping them in note view and only showing the full image when expanded.
https://video.nostr.build/5bdb3ede4fb7127bb43bc8a61f4d8cd1a4a584a16b09b5ab69a525b45d3179d3.mp4