The ns2 source code has certain files containing the implementation of MAC and TDMA protocols. The ns2 tutorial has a description of the filles. There are specific classes implementing the basic and advanced MAC protocols . you need to add the code for the implementation of minislots in those classes or design a new class having the desired feature and inheriting the basic classes. Hope this helps you.