Adjust to vertical layouts too