remove overlappings in layout