module.writeCloseSlide(attributes);
// If this is not the last slide then move onto the next slide.
if (rowLoop + 1 < elements) {
childIndex = childIndex.incrementCurrentFormatIndex(1);
// Increment the index if it is less than the array length.
// The duration will be the value of the last duration if
// there are more slides.
index += (index < timeValueArray.length - 1 ? 1 : 0);
}