The grid which appears in the background of the Slides editor helps you keep content balanced and aligned. Whenever a block is moved or resized close to a grid line it will snap to it. This behavior can be configured via the editor settings which are available in the bottom of the editor sidebar.
Option description: Grid: Should the grid be visible? Snap: Should blocks snap to the grid and sibling blocks?