The Closing anchor tag was missing for gallery images

The anchor tag was not closed properly, so have fix it and sent the pull request for the same.