only apply sparsity to hidden layer