Add preview to collection object in api endpoint