add transition for paragraph expanding