changed gallery structure