Finite Cycles

This version uses a simple counter and if/then statement to trigger the
endslideShow function after a predetermined number of cycles.