Out of the corner of my eye

Photo of a dog giving the side eye
This idiom is a way of saying you see someone in your peripheral vision. It means you did not get a good look at something because you were not looking directly at it, but you still saw it.

I saw the kids taking cookies, out of the corner of my eye.