code: function(elementId, apiController, direction) {
  
              if (elementId == pgwSlideshow.currentSlide) {
                  return false;
              }
  
              var element = pgwSlideshow.data[elementId - 1];
  
              if (typeof element == 'undefined') {
                  throw new Error('pgwSlideshow - The element ' + elementId + ' is undefined');
                  return false;
              }
  
              if (typeof direction == 'undefined') {
                  direction = 'left';
              }
  
              // Before slide
              if (typeof pgwSlideshow.config.beforeSlide == 'function') {
                  pgwSlideshow.config.beforeSlide(elementId);
              }
  
              if (typeof pgwSlideshow.plugin.find('.ps-caption').fadeOut == 'function') {
                  pgwSlideshow.plugin.find('.ps-caption, .ps-prev, .ps-next').fadeOut(pgwSlideshow.config.transitionDuration / 2);
              } else {
                  pgwSlideshow.plugin.find('.ps-caption, .ps-prev, .ps-next').hide();
              }
  
              // Choose the transition effect
              if (pgwSlideshow.config.transitionEffect == 'sliding') {
                  slideElement(element, direction);
              } else {
                  fadeElement(element);
              }
  
              // Reset interval to avoid a half interval after an API control
              if (typeof apiController != 'undefined' && pgwSlideshow.config.autoSlide) {
                  activateInterval();
              }
  
              return true;
          }
docs: Display current element