diff --git a/wowchemy/layouts/shortcodes/gallery.html b/wowchemy/layouts/shortcodes/gallery.html
index 2b5dd508..d9874879 100644
--- a/wowchemy/layouts/shortcodes/gallery.html
+++ b/wowchemy/layouts/shortcodes/gallery.html
@@ -28,9 +28,9 @@
{{ $caption = .caption }}
{{ end }}
{{ end }}
-
-
{{/* Width & height (or low res src) required for lazy loading. */}}
-
+
+
{{/* Width & height (or low res src) required for lazy loading. */}}
+
{{end}}
{{else}}
@@ -48,7 +48,7 @@
{{ end }}
{{/* Don't lazy load image as cannot init image size from non-Hugo asset, resulting in inaccurate anchor scrolling & active link highlighting. */}}
-
+
{{end}}
{{else}}