adds prev and next links to show and dimensions to table