change pagination gap using span element