Added offset calculation for carousel when allowWrap = false

There was no offset calculation for carousel when allowWrap = false. On resize, the offset was always 0.