diff --git a/app/build.gradle b/app/build.gradle
index 5db181a8..38f98fb5 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -151,6 +151,7 @@ dependencies {
implementation 'com.karumi:dexter:6.2.1'
+ implementation 'com.google.android:flexbox:2.0.1'
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
diff --git a/app/src/main/res/layout/fragment_profile_posts.xml b/app/src/main/res/layout/fragment_profile_posts.xml
index 27e47ea5..e5767b32 100644
--- a/app/src/main/res/layout/fragment_profile_posts.xml
+++ b/app/src/main/res/layout/fragment_profile_posts.xml
@@ -1,8 +1,10 @@
-
+ app:flexWrap="wrap"
+ app:justifyContent="center">
-
+
diff --git a/app/src/main/res/layout/fragment_search.xml b/app/src/main/res/layout/fragment_search.xml
index 7b838261..20580b56 100644
--- a/app/src/main/res/layout/fragment_search.xml
+++ b/app/src/main/res/layout/fragment_search.xml
@@ -2,7 +2,8 @@
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal">