what is the difference between the period and group in periodic table