Small CSS fixes for the gallery page.

Small fixes to the gallery page to support https://github.com/GeoNode/geonode/issues/945.