Revert "css changes for image gallery"

This reverts commit ba1a6bf86f96f463d3d9a4c6f4123ac9b8bec2be.
Revert "Revert "css changes for image gallery""

This reverts commit 014f9c67e7cf4b726a40334092f5843df3f37ce1.