smart match text position on mobile