fixing overlay width of the sample

This commit fixes the width of the overlay div that displays the text over the image inside the image gallery