What is the function of components in flatten layer