Write a string slicing function in Python that takes a string and start and end index, and return the slice.
string = "This is a slicing test"
start = 8
end = 15
def slicing(string, start, end):
    return string[start:end]
    
print(slicing(string, start, end))