Slice folder names correctly