Remove keyboard and dictation icons in iOS 11.x text entry
That gap is present on the iPhone X keyboard and at this time cannot be changed. You're not the only one who finds this irritating, so Apple might release a change in a future version of iOS, but for now you're unfortunately stuck with the gap.