What hapens you moving from left to right in a periodic table?

You add electrons in the outer shell and you add protons (and usually neutrons) in the nucleus. This of course increases atomic mass going from left to right.