Fixes issue #240 - slideCount undefined error

I went ahead and added the fix from the thread.  Thanks.