To fix empty page with single slide

If slider has only one slide, prev/next buttons and keyboard arrow keys still navigate and cause an empty slide to display. This fix checks if slider has single slide or not and sets upcoming slide and outgoing slide properly.