wrap 6th row into first row