add title and tag to gallery text