first arrange boys or girls=(4-1)=3! ways
now we have 4 spaces( between every two girls if you arranged the girls first ) and we have to put 4 boys in those spaces so chose 4 places out of 4 =4c4=1 ways now arrange them in 4! ways
total=3!*4!=144 ways