changed gallery class to matrix and removed listing class