Method and device for providing content