Added option to set caption for slide by index