Update the visibility of the navigation links

Hide the link to the previous subunit when the user is at the
first subunit. Hide the link to the next subunit when the user
is already at the last subunit. Display both links otherwise.