Why with travelling from left to right in a period atomic size decreases but suddenly increases in group 18
Along the period, atomic size decreases due to an increase in effective nuclear charge.
This means that though the number of protons keeps increasing in the nucleus, the electrons are added to the same shell. This way the nucleus is able to keep a tight hold on the electrons (attraction is high) and thus the size is small.
Keep in mind, this doesn't apply to Group 18 elements since they are stable and have completely filled shells. They have Van Der Waals radii, which is bigger than covalent or ionic radii that all the other group members have.