made gallery photos resizable

also adjusted various margins and paddings in gallery to make for better
symmetry