Oxygen is smaller because it is highly electronegative, thus pulling electrons closer to the neucleus than Nitrogen. This is also why noble gasses are all but inert, and why Oxygen and Flourine are so highly reactive.