carousel gif and photo scaling