simplistic way to restrain the bubbles from leaving the frame