code: function(element) {
  
              // Element caption
              var elementText = '';
              if (element.title) {
                  elementText += '<b>' + element.title + '</b>';
              }
  
              if (element.description) {
                  if (elementText != '') elementText += '<br>';
                  elementText += element.description;
              }
  
              if (elementText != '') {
                  if (element.link) {
                      elementText = '<a href="' + element.link + '"' + (element.linkTarget ? ' target="' + element.linkTarget + '"' : '') + '>' + elementText + '</a>';
                  }
  
                  if (typeof pgwSlider.plugin.find('.ps-caption').fadeIn == 'function') {
                      pgwSlider.plugin.find('.ps-caption').html(elementText);
                      pgwSlider.plugin.find('.ps-caption').fadeIn(pgwSlider.config.transitionDuration / 2);
                  } else {
                      pgwSlider.plugin.find('.ps-caption').html(elementText);
                      pgwSlider.plugin.find('.ps-caption').show();
                  }
              }
  
              // Slider controls
              if (pgwSlider.config.displayControls) {
                  if (typeof pgwSlider.plugin.find('.ps-current > .ps-prev').fadeIn == 'function') {
                      pgwSlider.plugin.find('.ps-current > .ps-prev, .ps-current > .ps-next').fadeIn(pgwSlider.config.transitionDuration / 2);
                  } else {
                      pgwSlider.plugin.find('.ps-current > .ps-prev, .ps-current > .ps-next').show();
                  }
              }
  
              // After slide
              if (typeof pgwSlider.config.afterSlide == 'function') {
                  pgwSlider.config.afterSlide(element.id);
              }
  
              // Set the container height
              if (pgwSlider.config.adaptiveHeight) {
                  var maxHeight = pgwSlider.plugin.find('.ps-current .elt_' + element.id + ' img').height();
                  updateHeight(maxHeight, true);
              }
  
              return true;
          }
docs: Finish element