You can remember the meaning of 隔壁 with this easy mnemonic:
My next-door neighbor and I are separated (隔) by a paper-thin wall (壁).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.