State-resolved slice imaging of photochemical dynamics