There is another world or domain between this world and the hereafter, which is called Barzakh. After death and before Qiyaamat all the humans and jins have to live therein as per their status. Barzakh is much bigger than this earth. The comparison between this world and Barzakh is like the womb of the mother compared to the earth. In it, there is comfort for some and hardships for others.
Aqida: Every person has a set lifespan on earth. It can not be increased or decreased. When the time of his life comes to an end, then Hazrat Izraeel (alaihis salaam) comes to remove his soul. The person sees on his left and right Angels for as far as his eyes can see. Angels of mercy come close to believers and Angels of Azaab (punishment) stand on the left and right of Kaafirs. At this moment, the reality of Islam becomes as evident as the bright shining sun to every person (on his deathbed), but to accept Imaan at this time is not acceptable, because the command of Imaan is to accept without seeing, and now everything is apparent and not unseen anymore.