Improved line positioning so it will appear over the example