Why does the atomic size decreases when going across Period 2?

Period 2

When going across Period 2, the positive charge of the nucleus of the elements increases, atoms of elements in Period 2 have two shells occupied with electrons. Hence, the increasing positive charge of the nucleus pulls the two shells of electrons closer to the nucleus when going across Period 2. This causes the decreases in the atomic size.