Hi Ali,
Does your stack have switches 2,3,4? If not then your could provision switches 2,3 and 4 as some other model of 3750. Try something like:
!
no switch 2 provision
!
Disconnect the stackwise cables from the new 3750X, reboot the stack...
!
switch 2 provision ws-c3750g-12s
switch 3 provision ws-c3750g-12s
switch 4 provision ws-c3750g-12s
switch 5 provision ws-c3750x-48p
!
Now reconnect the new 3750X via the stackwise cables and power it on
This will pre-populate the running config and should ensure your 3750X-48 becomes switch 5 in the stack. You could then:
!
no switch 2 provision
no switch 3 provision
no switch 4 provision
!
...and it should survive a reboot.
cheers,
Seb.