Revert "change gallery markup to fix display"

This reverts commit 8db4f1e122f75bfd094895ffd0f26ba2471292aa.