stable gallery loading