rudimentary line slicing with a simple test