Real-space renormalization-group transformation for finite thickness ising systems