It was not popular , and was broken up between parts of Somerset , Bristol and Gloucestershire It was formed from parts of the historic counties of Gloucestershire and Somerset , together with the City of Bristol .