fixed opening of deep nested child in media gallery