correct image w/h in gallery