code: function(index) {
              var panel = this.panels.eq(index),
              header = panel.prev();
  
              header.attr('aria-expanded', false).children('.fa').removeClass('fa-caret-down').addClass('fa-caret-right');
              header.removeClass('ui-state-active ui-corner-top').addClass('ui-corner-all');
              panel.attr('aria-hidden', true).slideUp();
  
              this._removeFromSelection(index);
          }
docs: Deactivates a tab with given index