fix the javascript table
All pictures look ok, horizontal pictures look terrible.