Squeezing in a spin chain with site-dependent periodic and long-range interactions