It can be mounted with the longer side vertical or horizontal. It saved my day as the contractor added an outlet that made it not possible to mount it horizontally.