make hovercards aware of screen edges