The 'of' is the same in both sentences, but the sentence requires the adverbial phakati 'inside'. In other words there are no special 'motion from' or 'motion to' prepositions as such.