truncate code for landing previews