fix displacement in grid layout