implement independent line resizing