prevent liines from going outside canvas