Revert "fix img gallery display"

This reverts commit 712565d2f6e85ed1257b0dd4cf92b16c0e9e3df1.