Refined line numbers to use flexbox