Some advanced cameras have built-in features allowing automatic adjustment of focal points between shots specifically designed for creating stacked sequences. Check your camera’s manual or specifications regarding automated focusing bracketing features.