code: function() {
              clearInterval(pgwSlideshow.intervalEvent);
  
              if (pgwSlideshow.slideCount > 1 && pgwSlideshow.config.autoSlide) {
                  pgwSlideshow.intervalEvent = setInterval(function() {
                      if (pgwSlideshow.currentSlide + 1 <= pgwSlideshow.slideCount) {
                          var nextItem = pgwSlideshow.currentSlide + 1;
                      } else {
                          var nextItem = 1;
                      }
                      displayElement(nextItem);
                  }, pgwSlideshow.config.intervalDuration);
              }
  
              return true;
          }
docs: Activate interval