added gallery style display to the products page, fixed javascript error