Slope filtrations for relative Frobenius