adjust text for vertical layout