fixed gallery thumbnail class