account strides caused by periodic boundary conditions