Long-range effects in layered spin structures