Fixes #43: made product detail image gallery work better