adjust selection overlay margin for rtl