Adjusts margin for episode_length for small devices