Gallery is an app - it installs into app space. There's no folder that Gallery keeps pictures in, it displays all pictures in the phone. If they all disappeared, either you factory reset the phone (then it's normal that pictures, along with anything else you've added since you got the phone are deleted) or something went wrong with it, and it needs to be repaired.