In a period, the number of valence electrons increases (mostly for light metal/elements) as we move from left to right side. However, in a group this periodic trend is constant, that is the number of valence electrons remains the same. Across a period, effective nuclear charge increases as electron shielding remains constant. A higher effective nuclear charge causes greater attractions to the electrons, pulling the electron cloud closer to the nucleus which results in a smaller atomic radius.