fixed: border added 2 px for calculation