Removed unnecessary next/prev links in gallery page