Yes, it has to do with the continuous vs not. “I saw him hide a bag” = he hid a bag (and completed the act of hiding the bag), and you saw him complete that act; for example, he placed the bag under a pillow and you saw him do that (<— note the two similar examples, “you saw him complete” and “you saw him do” - again because the action has been completed).
“I saw him hiding a bag” could refer to the same situation as above, but it could also mean he is STILL actively hiding the bag (for example, holding it behind his back) when you make the statement, and has not completed it like in the first example where he hid the bag and left it there.