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