border resize is now working correctly