diff --git a/themes/default/template/picture_nav_buttons.tpl b/themes/default/template/picture_nav_buttons.tpl
index e6b2a1e1f..fb6c0c7e9 100644
--- a/themes/default/template/picture_nav_buttons.tpl
+++ b/themes/default/template/picture_nav_buttons.tpl
@@ -39,6 +39,11 @@
{'First'|@translate}
{/if}{/strip}-->*}
+{strip}{if isset($U_UP) and !isset($slideshow)}
+
+ {'Thumbnails'|@translate}
+
+{/if}{/strip}
{strip}{if isset($previous)}
{'Previous'|@translate}
@@ -58,11 +63,6 @@
{'Pause of slideshow'|@translate}
{/if}
-{strip}{if isset($U_UP) and !isset($slideshow)}
-
- {'Thumbnails'|@translate}
-
-{/if}{/strip}
{strip}{if isset($next)}
{'Next'|@translate}