Layout cell auto-rearranging