Building panels provided with a locking system for vertical and horizontal locking of a first edge and a second edge of adjacent panels. The locking system includes a displaceable tongue at least partly arranged in a displacement groove, a tongue groove, a cavity provided in a strip at the first edge, and a protrusion extending downwards at the second edge. The displaceable tongue is arranged to be displaced at least partly into the tongue groove during locking, and wherein the protrusion is arranged to be located in least a portion of the cavity when the panels are locked vertically and horizontally.