adds preview to post page