legend toggle left right based on split