add index for slides