adding ellipsis in pre tags when the content is too long and also fixing the captions for photosets...