improve layoput for "atEnds" a bit. do not reverse atEnds.