Remove extra lines in layout