Hide prev/next arrows if not needed
Fix infinite loop in uglify task