add caption text to gallery