edits to gallery markup to be tumblr comparable