gallery update + bug fixes