shorten urls on index page if they're too long