The "mask" layer that you used to mask-in the contents of the glass was also adding to the mask every layer that was above it in that group. So the bubble particles were being added to the whole glass (notice they didn't leave the glass). This is why that part of the bubbles had to be removed from the mask. Once it was added, it's added. It's like everything added by an addition mask is "show all" unless otherwise told.
