Dimension effects on spin resonance in graphite intercalation compounds