Test Switch Statement

Testing switch statement in place of if.
Fix Pause at End of Images

Fixed the pause that occurs at the first and last image of the slider.
Merge pull request #1 from EdgarGPlata/switch-statement

Merge Switch Statement Version