Changing the number of loaded and shown activities