Add border, margin and hover effects for gallery images