Fixed logic error in cache expire, which would result in an empty slides array