truncate words in index page