bug: #3572322 gallery layout shift fix.

Closes #3572322

Merge request reports

Loading