$\ CO_2$ is heavier than oxygen and nitrogen still it does not form the lower layer of atmosphere

As we all know, the Earth's atmosphere is dynamic, and the gravity of the earth is relatively weak.

Convection currents carry Co2 upwards and, even in the absence of convection, there is always gaseous diffusion, resulting in mixing with air. The kinetic energy (resulting in millions of molecular collisions per second) possessed by the various molecules promotes this diffusion and they will mix quite easily, especially without any bonding forces between the various types of molecules.

Added to these processes is the very weak effect of the Earth's gravity, which is just not powerful enough to "calm down" the kinetic energy of the molecules.

If the air were perfectly still, its composition would be:

Ground level: 75% nitrogen, 23% oxygen,1.3% argon, 0.055% carbon dioxide 

10 km high: 79% nitrogen, 20% oxygen, 0.75% argon, 0.026% carbon dioxide

20 km high: 82.5% nitrogen, 17% oxygen, 0.43% argon, 0.012% carbon dioxide.

The heavier gases like carbon dioxide would have higher concentrations lower down, but could not form a lethal layer at the surface of the Earth.

However, it's not safe to assume the above processes and relative lack of carbon dioxide will always prevent the loss of life.

A Limnic Eruption | Exploding Lakes - Wikipedia

A limnic eruption, also referred to as a lake overturn, is a rare type of natural disasterin which dissolved carbon dioxide (CO2) suddenly erupts from deep lake waters, forming a gas cloud that can suffocate wildlife, livestock and humans. Such an eruption may also cause tsunamis in the lake as the rising CO2 displaces water. Scientists believe earthquakes, volcanic activity, or explosions can be a trigger for such phenomenon. Lakes in which such activity occurs may be known as limnically active lakes or exploding lakes. 

Effects of Carbon Dioxide Poisoning

One of a number of cattle killed by a limnic eruption at Lake Nyos, Cameroon

We can occasionally prevent the buildup of carbon dioxide by degassing the body of water.

enter image description here

A siphon used by French scientists to de-gas Lake Nyos. The carbon dioxide emerges from its deposits and bubbles into the water, floating to the top.