Using the Matrix field to output content in a slideshow
I reduced your code a little: You can use elseif to cycle trough each block so you don't have to write each if statement. Now where do you want your div?

If you want each block with one separate div you write them inside the if statement (As I did in this example).

 {% for block in entry.homepageSlider %}
    &lt;div class="da-slide"&gt;
       {% if block.type == "sliderText" %}
         &lt;div class="div-for-sliderText"&gt;{# content of first block #}&lt;/div&gt;
       {% elseif block.type == "sliderImage" %}
         &lt;div class="div-for-sliderImage"&gt;{# content of second block #}&lt;/div&gt;
        {% endif %}
     &lt;/div&gt;
 {% endfor %}


If you want to add the content of both blocks into one single div it would look like this:

 {% for block in entry.homepageSlider %}
    &lt;div class="da-slide"&gt;
     &lt;div class="all-blocks-in-one-single-div"&gt;
       {% if block.type == "sliderText" %}
         {# content of first block #}
       {% elseif block.type == "sliderImage" %}
         {# content of second block #}
        {% endif %}
     &lt;/div&gt;
    &lt;/div&gt;
 {% endfor %}


But this is basically what you already did. So I'm not sure If I understand what you are trying to accomplish.