Limit the number of words in the excerpt in photo view