Added method to find correct gap for current card