Sort files/slices according to SliceLocation, fix GUI issues