#726: fixed bug in formatSlides

fix for #726