Correctly positions the fragments on the screen