change the logic of slidedeck shortcode