slideshow: fix bug for folders with spaces