Filter out part of _layout on a specific template
Sorry... while searching for an answer to something else I discovered the solution to this :/

{% if craft.request.getSegment(1) != index.uri %}

    .... leave this chunk of code out

{% endif %}