Checkbox question

I have something set up to allow the user to checkbox whether or not they want a blog post featured and or added to the home page slider. It works fine for the slider and the featured if only one is selected but if both are selected it does not add the image to the slider. Code is below any help would be appreciated.

           display: Featured
           type: checkbox
           instructions: "Select if you would like this to be featured."
              not_featured: "No"
              is_featured: "Yes"
            display: Slider
            type: checkbox
            instructions: "Select if you would like this to be on the homepage slider."
              not_slider: "No"
              is_slider: "Yes"

      {{ entries:listing  folder="blog" paginate="no" show_future="false" show_past="true" limit="6" sort_dir="desc" }}
      {{ if homeslider }} 
       <li class="overlay">
        <div class="background-image-holder parallax-background">
          <img class="background-image" alt="{{ title }} " src="{{ main_img }}">
         <div class="container align-vertical">
          <div class="row">
            <div class="col-md-6 col-sm-9">
              <h1 class="text-white">{{ summary }}</h1>
              <a href="{{ url }}" class="btn btn-primary btn-filled">Read more</a>
        </div><!--end of container-->
      </li><!--end of individual slide-->

      <!--end of individual slide-->
      {{ endif }}
      {{ /entries:listing }}

 {{ entries:listing  folder="blog" paginate="yes" show_future="false" show_past="true" limit="20" sort_dir="desc" }}
        {{ if featured }}
        <div class="col-md-12 col-sm-12 no-pad blogroll ">
          {{ else}}
        <div class="col-md-4 col-sm-6 no-pad blogroll">
          {{ endif }}
              <div class="blog-snippet-1">
                <a href="{{ url }}">
                {{ if featured }}
                <img src="{{ transform src="{{ main_img }}" width="2200" height="420"  action="smart" alt="{{title}}"quality="100" }} " />

                {{ else}}
                  <img src="{{ transform src="{{ main_img }}" width="820" height="350"  action="smart" alt="{{title}}" quality="100" }} " />
                {{ endif }}
                <a href="{{ url }}"><h2>{{ title }}</h2></a>
                <span class="sub alt-font">Published on {{ date }}</span>
              {{ content|truncate:150|widont }}
                <a href="{{ url }}" class="link-text">Read The Rest</a>
          </div><!--end of individual project-->

          {{ /entries:listing }}
>>>>>>> Unanswered <<<<<<<
4 Replies