Loop based on date (with math)
You could try using the date_modify filter with a relative DateTime format:

{% if slide.dateTime|date_modify('tomorrow 5am')|date('U') &lt; now|date('U') %}


And if you want to limit the entries to be displayed, you should not use the limit parameter for that. Your
ElementCriteriaModel doesn't take your DateTime conditional into account, so it requires a custom solution:

{% set slides = craft.entries.section('events').featured('1').order('dateTime asc').limit(null) %}

{% set count = 0 %}
{% for slide in slides %}
    {% if count &lt; 5 and slide.dateTime|date_modify('tomorrow 5am')|date('U') &lt; now|date('U') %}
        {{ slide.dateTime }}
        {% set count = count + 1 %}
    {% endif %}
{% endfor %}