Add thumbnail class for post