resize media preview to frames