truncate for index page