made gallery iterate