Welcome to Android Central! The Gallery scans all storage areas for photos, then displays them. The Gallery doesn't store photos itself. So the actual photos remain in whatever folder they're in--they don't get copied to a separate Gallery directory.
Unfortunately, if you deleted them, they're gone. Hopefully you can download them again, if that's how you got them.