resizing gif for previews