playing at making the gallery resize sanely (fail)