replace text in slideshow gallery images to have the right number of characters