css: auto changing lines when slided, and fix a subtle visual issue