You can remember the meaning of 旁边 with this easy mnemonic:
The house takes in water from the lateral pipes. There are pipes on one side (旁) here, and pipes on the edge (边) over there.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.