Switch from id to class for vertical/horizontal toggle