check there's a slide before outputting list item