Please update the text to remove the grammatical issues.
I remembered that before I fell sleep all animals got well along with each other.
I remembered that, before I fell asleep, all animals got well along with each other.