diff --git a/layouts/shortcodes/carousel.html b/layouts/shortcodes/carousel.html
index 91b333b2..9ce77a46 100644
--- a/layouts/shortcodes/carousel.html
+++ b/layouts/shortcodes/carousel.html
@@ -1,10 +1,13 @@
-
+{{ $time := now.UnixNano }}
+{{ $id := delimit (slice "gallery" $time) "-" }}
+
+
{{ $num := 0 }}
{{ range .Params }}
-
{{ $num = add $num 1 }}
@@ -25,13 +28,13 @@