Table next and prev with variable number of lines
Added line class (not working)