Swapping sandbox allocations