Creating an interactive story can be difficult. Even one fork in your story can create many additional slides.
One technique to help you plan your story is to draw a map of your story. This can help you visualize the forks in your story.
This is a map of the story from Choose Your Own Career.
You can also use index cards to plan out your story.
Another technique is to have several forks in the story converge at the same place. In Choose Your Own Career, several folks in the story converge in spots like "Your boss offers you a promotion ..." This allows you to create an interactive story while keeping the total number of slides needed low.
Here are a few websites with tips on writing interactive fiction: