SPM searches the folder of the displayed file, alphanumerically sorts the image files and creates a slideshow list for its own internal use.
The images are displayed for the duration set at 'Edit/Preferences/Slide Show Interval' and this value is displayed at the top of the window.
To stop the slide show, simply select 'Slide Show' from the menu again or press 'A'.