loading gallery file hopefully