Adds class to slides with caption

If slide has a 'p' element (as a caption), adds a 'with-caption' class to slide. With this can make different formatting for slides with and without caption.