move layers from list to dict