updated layers management.
BUG: on load, tilesets may be duplicated