change images in gallery to small sizes