By adding a little bit of water to the cup before attaching it to the surface, you can create a seal that will help keep the suction cup in place. Additionally, make sure that the surface you're attaching the suction cup to is clean and smooth - this will also help create a stronger grip.