So let me see if I have this right. This can be explained through electrostatic attraction right? If you take the coulumbs law,
[itex]\frac { { Q }_{ 1 }{ Q }_{ 2 } }{ 4\pi { \varepsilon }_{ 0 }{ r }^{ 2 } }[/itex]
then as you go towards the right in a period, both Q1 (the charge of the nucleus) and -Q2 (charge of the electron cloud, negative because electrons are negatively charged) increases because you are adding protons and electrons respectively. Because [itex]4\pi e_{0}[/itex] is pretty much a constant, and when you move towards the right of a period, the added electrons just fill up the existing shell, not create a new one, the r^2 remains a constant. Thus, because Q1 and Q2 increase, the net force between them increases, and the electrons are pulled close. This can be related to having two small magnets, and then two large ones. The two large ones are pulled together much more than two small ones.
When you go down a group, you are adding a new shell and that increases the atomic size.
Now is the part I am not clear about.
When you form an anion, you add an electron to a given atom. That should make the atomic size increase. However, using coulumbs law, wouldn't the force between them be greater?