Complex sentence: The Pink Panther character appears behind him unnoticed, cleverly smirking and closes the door immediately afterwards, leaving Leo confused.
Split into simpler sentences: The Pink Panther character appears behind him unnoticed, cleverly smirking and closes the door. Immediately afterwards, leaving Leo confused.