gallery improve bh.js