Spatial and Temporal Hierarchy for Autonomous Navigation using Active Inference in Minigrid Environment