adding line helper to build any number of solid or dashed lines