Your dimmer looke like some I've used. From your picture it's hard to tell but they should be wired so the two center wires are the +terminals (in and out) and the outside wires are the - terminals... not sure you wired them that way from your pics...
*I missed Laseradam's post... same idea!
*I missed Laseradam's post... same idea!