Swelling effects on localized adhesion of an elastic ribbon