Can sharding work with replication? Basically we need to have a replication, a minimal setup.

Primary
- Slave 1
- Slave 2


Is it possible in the future we Shared it? What would be the setup?

Is it going to have shared on Slaves like this?

Primary
- Slave 1 (Shared A)
  - Primary
  - Secondary
- Slave 1 (Shared A)
  - Primary
  - Secondary
I'm not sure I understand your question. But yes, sharding and replication work together.

http://docs.mongodb.org/manual/faq/sharding/#how-does-sharding-work-with-replication

Anyway, the master-slave replication approach has been discouraged for some time. 

http://docs.mongodb.org/manual/core/master-slave/

The docs are pretty good, take a look at the replication section.