correctly position tooltips for horizontal layout