more documentation and incrementing index on loop for slide number starting at 1