Using the slice rank for finding upper bounds on the size of cap sets