change markup to display gallery img with captions