Quantum size effects in molecular magnets