transforming headers of table to be vertical