fix the img & video size to relation