#726: fixed bug in formatSlides