Prevent overlapping of fields in edit mode