Added logic to NOT show link unit if its after the last image