Special index calculation when there are only 2 slides.

Fixes #278