Animation with limit mate not working

I'm trying to show in the animation two boxes sliding togethor using the limit mate.  The limit mates work fine in when I slide them manually, but when I try to animate, the time bar turns red and the limit mate is ignored causing the boxes to overlap. 

SolidworksMotion Studies