Fix pic length

Minor tweaks and use correct math to determine how long a slideshow pic
stays visible