Self-Consistent Treatment of the Layer Spacing in Smectic A Liquid-Crystals