Issue #8756 by tuj: Fixed array index for slides