even if it does not matter here, better:

[create_slices(30) for _ in range(len(train_slices))]