Samsung is reportedly working on technology to enable S Pen functionality in foldable phones without increasing thickness.