Confine alert box to the grid