rearrange tooltips to fit inside image