apply snap to layout