Chances are, there may have been too much moisture in the pineapple slices that soaked into the cake. Make sure to blot the pineapple slices with paper towel beforehand.