Repulsive Casimir forces with finite-thickness slabs