adjust label location at edge