New horizontalLayout function; put elements in a single table row