VE-1598: Update gallery matching pattern