Random heteropolymers in layered fluids