FIX: slim.after is called too early

FIX: slim.after is called too early (before response is sent to the client).
also move slim.before for enhanced symmetry