Floor panels are provided with a mechanical locking system having small local protrusions which reduce displacement along the joint when the panels are laying flat on the sub floor and locked vertically and horizontally. A method to install a floor comprising a plurality of rectangular floor panels laying in parallel rows on a sub floor with long and short edges which are connectable to each other along one pair of adjacent long edges and one pair of adjacent short edges.