public function slideshow()
 {
     expHistory::set('viewable', $this->params);
     $where = $this->aggregateWhereClause();
     $where .= !empty($this->config['only_featured']) ? "AND featured=1" : "";
     $order = 'rank';
     $s = new portfolio();
     $slides = $s->find('all', $where, $order);
     assign_to_template(array('slides' => $slides));
 }