or

We know, lanthanides are rare earth metals, and actinides are radioactive metals. The properties of lanthanides resemble each other very closely but are different from the rest elements due to the preferential filling of f-orbitals. So, they are placed separately to avoid unnecessary sidewise expansion of the periodic table.