use outline instead of border to prevent element from changing their size