Spring-loaded gates on both ends